<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="ncm-container">
<?php include template('member/member_left');?>
  <div class="right-layout">
<div class="ncm-oredr-show">
  <div class="ncm-order-info">
    <div class="ncm-order-details">
      <div class="title">订单信息</div>
      <div class="content">
        <dl>
          <dt><?php echo $lang['member_show_order_receiver'].$lang['nc_colon'];?></dt>
          <dd><?php echo $output['order_info']['extend_order_common']['reciver_name'];?></dd>
          <dt>联系电话<?php echo $lang['nc_colon'];?></dt>
          <dd><?php echo @$output['order_info']['extend_order_common']['reciver_info']['phone'];?></dd>
          <dt>收货地址<?php echo $lang['nc_colon'];?></dt>
          <dd><?php echo @$output['order_info']['extend_order_common']['reciver_info']['address'];?></dd>
        </dl>
        <!--<dl>
          <dt>发&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;票：</dt>
          <dd>
			<?php foreach ((array)$output['order_info']['extend_order_common']['invoice_info'] as $key => $value){?>
			  <span title="<?php echo $key;?>"><?php echo $value;?></span>
			<?php } ?>
          </dd>
        </dl>-->
		
		

		
        <dl>
		  <?php if($output['order_info']['extend_order_common']['order_message']) { ?>
		  <dt><?php echo $lang['member_show_order_buyer_message'].$lang['nc_colon'];?></dt>
		  <dd><?php echo $output['order_info']['extend_order_common']['order_message']; ?></dd>
		  <?php } ?>
        </dl>
        <dl class="line">
          <dt><?php echo $lang['member_change_order_no'].$lang['nc_colon'];?></dt>
          <dd><?php echo $output['order_info']['order_sn']; ?><a href="javascript:void(0);">更多<i class="icon-angle-down"></i>
            <div class="more"><span class="arrow"></span>
              <ul>
				  <?php if($output['order_info']['payment_name']) { ?>
				  <li><?php echo $lang['member_order_pay_method'].$lang['nc_colon'];?><span><?php echo $output['order_info']['payment_name']; ?>
				  <?php if($output['order_info']['payment_code'] != 'offline' && !in_array($output['order_info']['order_state'],array(ORDER_STATE_CANCEL,ORDER_STATE_NEW))) { ?>
					(<?php echo '付款单号'.$lang['nc_colon'];?><?php echo $output['order_info']['pay_sn']; ?>)<?php } ?></span></li>
				  <?php } ?>
				  <li><?php echo $lang['member_order_time'].$lang['nc_colon'];?><span><?php echo date("Y-m-d H:i:s",$output['order_info']['add_time']); ?></span></li>
				  <?php if(intval($output['order_info']['payment_time'])) { ?>
				  <li><?php echo $lang['member_show_order_pay_time'].$lang['nc_colon'];?><span><?php echo date("Y-m-d H:i:s",$output['order_info']['payment_time']); ?></span></li>
				  <?php } ?>
				  <?php if($output['order_info']['extend_order_common']['shipping_time']) { ?>
				  <li><?php echo $lang['member_show_order_send_time'].$lang['nc_colon'];?><span><?php echo date("Y-m-d H:i:s",$output['order_info']['extend_order_common']['shipping_time']); ?></span></li>
				  <?php } ?>
				  <?php if(intval($output['order_info']['finnshed_time'])) { ?>
				  <li><?php echo $lang['member_show_order_finish_time'].$lang['nc_colon'];?><span><?php echo date("Y-m-d H:i:s",$output['order_info']['finnshed_time']); ?></span></li>
				  <?php } ?>
			  </ul>
            </div>
            </a></dd>
        </dl>
        <dl>
          <dt>商&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;家<?php echo $lang['nc_colon'];?></dt>
          <dd><?php echo $output['order_info']['extend_store']['store_name']; ?><a href="javascript:void(0);">更多<i class="icon-angle-down"></i>
            <div class="more"><span class="arrow"></span>
              <ul>
			    
                <li><?php echo $lang['member_address_location'].$lang['nc_colon'];?><span><?php echo $output['order_info']['extend_store']['area_info'].'&nbsp;'.$output['order_info']['extend_store']['store_address']; ?></span></li>
				<?php if (!empty($output['order_info']['extend_store']['store_tel'])) { ?>
                <li>联系电话<?php echo $lang['nc_colon'];?><span><?php echo $output['order_info']['extend_store']['store_tel']; ?></span></li>
				<?php } ?>
              </ul>
            </div>
            </a>
            <div class="msg">
              <span member_id="<?php echo $output['order_info']['extend_store']['member_id'];?>"></span>
            <!-- QQ -->
			<?php if(!empty($output['order_info']['extend_store']['store_qq'])){?>
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $output['order_info']['extend_store']['store_qq'];?>&site=qq&menu=yes" title="QQ: <?php echo $output['order_info']['extend_store']['store_qq'];?>"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $output['order_info']['extend_store']['store_qq'];?>:52" style=" vertical-align: middle;"/></a>
            <?php }?>
            <!-- wang wang -->
            <?php if(!empty($output['order_info']['extend_store']['store_ww'])){?>
				<a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?php echo $output['order_info']['extend_store']['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>"  class="vm" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $output['order_info']['extend_store']['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="Wang Wang"  style=" vertical-align: middle;"/></a>
			<?php }?>
            </div>
          </dd>
        </dl>
      </div>
    </div>

    
    <div class="ncm-order-condition">
      <?php if ($output['order_info']['order_state'] == 10) { ?>
      <dl>
        <dt><i class="icon-ok-circle green"></i>订单状态：</dt>
        <dd>订单已经提交，等待买家付款</dd>
      </dl>
      <ul>
	    <?php if ($output['order_info']['payment_code'] == 'offline') { ?>
        <li>1. 您已经选择货到付款方式下单成功。</li>
        <li>2. 订单已提交商家进行备货发货准备。</li>
        <li>3. 如果您不想购买此订单的商品，请选择<a href="javascript:void(0)" class="ncm-btn-mini" nc_type="dialog" dialog_width="480" dialog_title="<?php echo $lang['member_order_cancel_order'];?>" dialog_id="buyer_order_cancel_order" uri="index.php?act=member_order&op=change_state&state_type=order_cancel&order_id=<?php echo $output['order_info']['order_id']; ?>"  id="order<?php echo $output['order_info']['order_id']; ?>_action_cancel"><?php echo $lang['member_order_cancel_order'];?></a>操作。</li>
		<?php }else { ?>
        <li>1. 您尚未对该订单进行支付，请<a href="index.php?act=buy&op=pay&pay_sn=<?php echo $output['order_info']['pay_sn']; ?>" class="ncm-btn-mini ncm-btn-orange"><i></i>支付订单</a>以确保商家及时发货。</li>
        <li>2. 如果您不想购买此订单的商品，请选择<a href="javascript:void(0)" class="ncm-btn-mini" nc_type="dialog" dialog_width="480" dialog_title="<?php echo $lang['member_order_cancel_order'];?>" dialog_id="buyer_order_cancel_order" uri="index.php?act=member_order&op=change_state&state_type=order_cancel&order_id=<?php echo $output['order_info']['order_id']; ?>"  id="order<?php echo $output['order_info']['order_id']; ?>_action_cancel"><?php echo $lang['member_order_cancel_order'];?></a>操作。</li>
        <li>3. 如果您未对该笔订单进行支付操作，系统将于<time><?php echo date("Y-m-d H:i:s",$output['order_info']['add_time']+86400*3); ?></time>自动关闭该订单。</li>
        <?php } ?>
	  </ul>
	  <?php } ?>
      <?php if ($output['order_info']['order_state'] == 20) { ?>
      <dl>
        <dt><i class="icon-ok-circle green"></i>订单状态：</dt>
        <dd>已支付成功</dd>
      </dl>
      <ul>
        <li>1. 您已使用“<?php echo $output['order_info']['payment_name']; ?>”方式成功对订单进行支付，支付单号 “<?php echo $output['order_info']['pay_sn']; ?>”。</li>
        <li>2. 订单已提交商家进行备货发货准备。</li>
        <li>3. 如果您想取消购买，请与商家沟通后对订单进行
		<a href="javascript:void(0)" class="ncm-btn-mini" nc_type="dialog" dialog_title="取消订单" dialog_id="member_order_refund" dialog_width="480" uri="index.php?act=member_refund&op=add_refund_all&order_id=<?php echo $output['order_info']['order_id']; ?>" id="order<?php echo $output['order_info']['order_id']; ?>_action_refund">申请退款</a>操作。</li>
      </ul>
	  <?php } ?>
      <?php if ($output['order_info']['order_state'] == 30) { ?>
      <dl>
        <dt><i class="icon-ok-circle green"></i>订单状态：</dt>
        <dd>商家已发货</dd>
      </dl>
      <ul>
        <li>1. 商品已发出；<?php echo $lang['member_show_expre_company'].$lang['nc_colon'];?><?php echo $output['e_name'];?>；<?php echo $lang['member_show_express_ship_code'].$lang['nc_colon'];?><?php echo $output['order_info']['shipping_code']; ?>。查看 <a href="#order-step" class="blue">“物流跟踪”</a> 情况。</li>
        <li>2. 如果您已收到货，且对商品满意，您可以<a href="javascript:void(0)" class="ncm-btn-mini ncm-btn-green" nc_type="dialog" dialog_id="buyer_order_confirm_order" dialog_width="480" dialog_title="<?php echo $lang['member_order_ensure_order'];?>" uri="index.php?act=member_order&op=change_state&state_type=order_receive&order_sn=<?php echo $output['order_info']['order_sn']; ?>&order_id=<?php echo $output['order_info']['order_id']; ?>" id="order<?php echo $output['order_info']['order_id']; ?>_action_confirm"><?php echo $lang['member_order_ensure_order'];?></a>确认收货</a>完成交易。</li>
        <li>3. 系统将于<time><?php echo date("Y-m-d H:i:s",$output['order_info']['extend_order_common']['shipping_time']); ?></time>自动完成“确认收货”，完成交易。</li>
      </ul>
	  <?php } ?>
      <?php if ($output['order_info']['evaluation_state'] == 0 && $output['order_info']['order_state'] == 40) { ?>
      <dl>
        <dt><i class="icon-ok-circle green"></i>订单状态：</dt>
        <dd>已经收货。</dd>
      </dl>
      <ul>
        <li>1. 如果收到货后出现问题，您可以联系商家协商解决。</li>
        <li>2. 如果商家没有履行应尽的承诺，您可以申请 <a href="#order-step" class="red">"投诉维权"</a>。</li>
        <li>3. 交易已完成，你可以对购买的商品及商家的服务进行<a class="ncm-btn-mini ncm-btn-acidblue" href="index.php?act=member_evaluate&op=add&order_id=<?php echo $output['order_info']['order_id']; ?>">评价</a>及晒单。</li>
      </ul>
	  <?php } ?>
      <?php if ($output['order_info']['evaluation_state'] == 1 ) { ?>
      <dl>
        <dt><i class="icon-ok-circle green"></i>订单状态：</dt>
        <dd>评价完成。</dd>
      </dl>
      <ul>
        <li>1. 您已对该笔订单进行了商品及交易评价，感谢您的支持，祝您购物愉快！</li>
        <li>2. 将感兴趣的<a href="index.php?act=member_favorites&op=fglist" class="ncm-btn-mini">收藏商品</a>加入购物车进行购买。</li>
      </ul>
	  <?php } ?>
      <?php if ($output['order_info']['order_state'] == 0 ) { ?>
      <dl>
        <dt><i class="icon-off orange"></i>订单状态：</dt>
        <dd>交易关闭</dd>
      </dl>
      <ul>
		  <?php foreach($output['order_log'] as $val) { ?>
		  <li> <?php echo $val['log_role'];?>&emsp;<?php echo $lang['member_show_order_at'];?>&emsp;<?php echo date("Y-m-d H:i:s",$val['log_time']); ?>&emsp;<?php echo $val['log_msg'];?></li>
		  <?php } ?>
      </ul>
	  <?php } ?>
    </div>

  </div>
      <?php if ($output['order_info']['order_state'] != 0 ) { ?>
    <div id="order-step" class="ncm-order-step">
    <dl class="step-first <?php if($output['order_info']['add_time']) { ?>current<?php } ?>">
      <dt>提交订单</dt>
      <dd class="bg"></dd>
      <dd class="date" title="<?php echo $lang['member_order_time'];?>"><?php echo date("Y-m-d H:i:s",$output['order_info']['add_time']); ?></dd>
    </dl>
    <?php if ($output['order_info']['payment_code'] != 'offline') { ?>
    <dl class="<?php if(intval($output['order_info']['payment_time'])) { ?>current<?php } ?>">
      <dt>支付订单</dt>
      <dd class="bg"> </dd>
      <dd class="date" title="<?php echo $lang['member_show_order_pay_time'];?>"><?php echo date("Y-m-d H:i:s",$output['order_info']['payment_time']); ?></dd>
    </dl>
    <?php } ?>
    <dl class="<?php if($output['order_info']['extend_order_common']['shipping_time']) { ?>current<?php } ?>">
      <dt>商家发货</dt>
      <dd class="bg"> </dd>
      <dd class="date" title="<?php echo $lang['member_show_order_send_time'];?>">
      <?php echo date("Y-m-d H:i:s",$output['order_info']['extend_order_common']['shipping_time']); ?>
	  </dd>
    </dl>
    <dl class="<?php if(intval($output['order_info']['finnshed_time'])) { ?>current<?php } ?>">
      <dt>确认收货</dt>
      <dd class="bg"> </dd>
      <dd class="date" title="<?php echo $lang['member_show_order_finish_time'];?>"><?php echo date("Y-m-d H:i:s",$output['order_info']['finnshed_time']); ?></dd>
    </dl>
    <dl class="<?php if ($output['order_info']['evaluation_state'] == 1 ) {?>current<?php } ?>">
      <dt>评价</dt>
      <dd class="bg"></dd>
      <dd class="date" title="评价时间<?php echo $lang['member_show_order_evaluate_time'];?>">
		  <?php foreach($output['order_log'] as $val) { ?>
		  <?php if ($val['log_msg'] == '评价了交易') { ?>
		  <?php echo date("Y-m-d H:i:s",$val['log_time']); ?>
		  <?php } ?><?php } ?>
	  </dd>
    </dl>
  </div>
<?php } ?>
  <div class="ncm-order-contnet">
  <table class="ncm-default-table order">
    <thead>
      <tr>
        <th class="w10"></th>
        <th colspan="2"><?php echo $lang['member_order_goods_name'];?></th>
        <th class="w20"></th>
        <th class="w120 tl"><?php echo $lang['member_order_price'];?>（元）</th>
        <th class="w60"><?php echo $lang['member_order_amount'];?></th>
        <th class="w100">优惠活动</th>
        <th class="w100">售后维权</th>
        <th class="w100">交易状态</th>
        <th class="w100">交易操作</th>
      </tr>
    </thead>
    <tbody>
		<?php if($output['order_info']['order_state'] >= 30) { ?>
		<tr>
			<th colspan="7" style="border-right: none;"> <div class="order-deliver"><span><?php echo $lang['member_show_expre_company'].$lang['nc_colon'];?><?php echo $output['e_name'];?></span><span><?php echo $lang['member_show_express_ship_code'].$lang['nc_colon'];?><?php echo $output['order_info']['shipping_code']; ?></span><span><a href="javascript:void(0);" id="show_shipping">物流跟踪<i class="icon-angle-down"></i>
				  <div class="more"><span class="arrow"></span>
				  <ul id="shipping_ul"><li><?php echo $lang['nc_common_loading'];?></li></ul>
				  </div>
				  </a></span></div></th>
			<th colspan="3" style=" border-left: none;">
			<dl class="daddress-info">
				<?php if(!empty($output['daddress_info'])) { ?>
				<dt>发&nbsp;&nbsp;货&nbsp;&nbsp;人<?php echo $lang['nc_colon'];?></dt>
				<dd><?php echo $output['daddress_info']['seller_name']; ?><a href="javascript:void(0);">更多<i class="icon-angle-down"></i>
				  <div class="more"><span class="arrow"></span>
					<ul>
					  <li>公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司：<span><?php echo $output['daddress_info']['company'];?></span></li>
					  <li>联系电话：<span><?php echo $output['daddress_info']['telphone'];?></span></li>
					  <li>发货地址：<span><?php echo $output['daddress_info']['area_info'];?>&nbsp;<?php echo $output['daddress_info']['address'];?></span></li>
					</ul>
				  </div>
				  </a>
				<?php } ?>
				</dd>
			  </dl>
			</th>
        </tr>
		<?php } ?>
		<?php foreach($output['order_info']['extend_order_goods'] as $k => $goods) {?>
        <tr class="bd-line">
        <td>&nbsp;</td>
        <td class="w50"><div class="pic-thumb"><a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=>$goods['goods_id'])); ?>"><img src="<?php echo thumb($goods,60); ?>" onMouseOver="toolTip('<img src=<?php echo thumb($goods,240); ?>>')" onMouseOut="toolTip()" /></a></div></td>
        <td class="tl"><dl class="goods-name">
            <dt><a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=>$goods['goods_id'])); ?>"><?php echo $goods['goods_name']; ?></a></dt>
            <dd>
                      </dl></td>
          <td></td>
        <td class="tl refund"><?php echo $goods['goods_price']; ?><p class="green"></p></td>
        <td><?php echo $goods['goods_num']; ?></td>
        <td><?php echo orderGoodsType($goods['goods_type']); ?></td>
        <td>
		<!-- 退款 -->
		<?php if ($output['order_info']['evaluation_state'] == 0 && $output['order_info']['lock_state'] == 0 && $output['order_info']['order_state'] >= 30) { ?>
          <p><a href="index.php?act=member_refund&op=add_refund&order_id=<?php echo $output['order_info']['order_id']; ?>&goods_id=<?php echo $goods['rec_id']; ?>"
            id="order<?php echo $output['order_info']['order_id'];?>_<?php echo $goods['goods_id']; ?>action_refund">
            <?php echo '退款退货';?></a></p>
        <?php }?>
		<!-- 投诉 -->
          <?php if ($output['order_info']['order_state'] >= 10){ ?>
          <p><a href='index.php?act=member_complain&op=complain_new&order_id=<?php echo $output['order_info']['order_id']; ?>&goods_id=<?php echo $goods['goods_id']; ?>' target="_blank">交易投诉</a></p>
          <?php } ?>
        </td>
		<?php if ((count($output['order_info']['extend_order_goods']) > 1 && $k ==0) || (count($output['order_info']['extend_order_goods']) == 1)){?>
        <td class="bdl bdr" rowspan="<?php echo count($output['order_info']['extend_order_goods']);?>"><?php echo $output['order_info']['state_desc']; ?><?php echo $output['order_info']['evaluation_status'] ? $lang['member_order_evaluated'].'' : '';?></td>
        <td rowspan="<?php echo count($output['order_info']['extend_order_goods']);?>">
          <!-- 锁定-->
          <?php if ($output['order_info']['lock_state'] >= 1) { ?><p>退款退货中</p><?php } ?>
          <!-- 取消订单 -->
          <?php if ($output['order_info']['lock_state'] == 0 && $output['order_info']['order_state'] == 10) { ?>
          <p><a href="javascript:void(0)" class="ncm-btn-mini" nc_type="dialog" dialog_width="480" dialog_title="<?php echo $lang['member_order_cancel_order'];?>" dialog_id="buyer_order_cancel_order" uri="index.php?act=member_order&op=change_state&state_type=order_cancel&order_id=<?php echo $output['order_info']['order_id']; ?>"  id="order<?php echo $output['order_info']['order_id']; ?>_action_cancel"><?php echo $lang['member_order_cancel_order'];?></a></p>
          <?php } ?>
          <!-- 退款取消订单 -->
          <?php if ($output['order_info']['lock_state'] == 0 && $output['order_info']['order_state'] == 20){ ?>
          <p><a href="javascript:void(0)" class="ncm-btn-mini" nc_type="dialog" dialog_title="取消订单" dialog_id="member_order_refund" dialog_width="480" uri="index.php?act=member_refund&op=add_refund_all&order_id=<?php echo $output['order_info']['order_id']; ?>" id="order<?php echo $output['order_info']['order_id']; ?>_action_refund">订单退款</a></p>
          <?php } ?>
          <!-- 收货 -->
          <?php if ($output['order_info']['lock_state'] == 0 && $output['order_info']['order_state'] == 30) { ?>
          <p><a href="javascript:void(0)" class="ncm-btn" nc_type="dialog" dialog_id="buyer_order_confirm_order" dialog_width="480" dialog_title="<?php echo $lang['member_order_ensure_order'];?>" uri="index.php?act=member_order&op=change_state&state_type=order_receive&order_sn=<?php echo $output['order_info']['order_sn']; ?>&order_id=<?php echo $output['order_info']['order_id']; ?>" id="order<?php echo $output['order_info']['order_id']; ?>_action_confirm"><?php echo $lang['member_order_ensure_order'];?></a></p>
          <?php } ?>
          <!-- 评价 -->
          <?php if ($output['order_info']['lock_state'] == 0 && $output['order_info']['order_state'] == 40) { ?>
          <p><a class="ncm-btn ncm-btn-green" href="index.php?act=member_evaluate&op=add&order_id=<?php echo $output['order_info']['order_id']; ?>"><?php echo $lang['member_order_want_evaluate'];?></a></p>
          <?php } ?>
          <!-- 已经评价 -->
          <?php if (intval($output['order_info']['evaluation_state'])) { echo $lang['order_state_eval'];} ?>
        </td>
		<?php } ?>
        </tr>
		<?php } ?>
    </tbody>
    <tfoot>


    <!-- S 促销信息 -->
    <?php if(!empty($output['order_info']['extend_order_common']['promotion_info']) || !empty($output['order_info']['extend_order_common']['voucher_code'])){ ?>
      <tr>
        <th colspan="20">
		  <dl class="ncm-store-sales">
            <dt><?php echo $lang['nc_promotion'].$lang['nc_colon'];?></dt>
			<?php if(!empty($output['order_info']['extend_order_common']['promotion_info'])){ ?>
			<dd><strong>“满即送”</strong><span> <?php echo $output['order_info']['extend_order_common']['promotion_info'];?></span></dd>
			<?php } ?>
			<?php if(!empty($output['order_info']['extend_order_common']['voucher_code'])){ ?>
			<dd><strong>代金券</strong><span> 面额 <?php echo $lang['nc_colon'];?> <?php echo $output['order_info']['extend_order_common']['voucher_price'];?>
			 编码 : <?php echo $output['order_info']['extend_order_common']['voucher_code'];?></span></dd>
			<?php } ?>
	      </dl>
	    </th>
	</tr>
    <?php } ?>
    <!-- E 促销信息 -->

      <tr>
        <td colspan="20"><dl class="freight">
		    <dt>运费<?php echo $lang['nc_colon'];?></dt>
            <dd>
			<?php if(!empty($output['order_info']['shipping_fee']) && $output['order_info']['shipping_fee'] != '0.00'){ ?>
              <?php echo $lang['member_show_order_tp_fee'].$lang['nc_colon'];?><span><?php echo $lang['currency'];?><?php echo $output['order_info']['shipping_fee']; ?> <?php if ($output['order_info']['shipping_name'] != ''){echo '('.$output['order_info']['shipping_name'].')';};?></span>
            <?php }else{?>
          	  <?php echo $lang['nc_common_shipping_free'];?>
            <?php }?>
		  </dd>
          </dl>
          <dl class="sum">
            <dt>订单应付金额：</dt>
            <dd><em><?php echo $output['order_info']['order_amount']; ?></em>元</dd>
          </dl></td>
      </tr>
    </tfoot>
  </table>
  
  
</div>
</div>
<script charset="utf-8" type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/sns.js" ></script>
<script type="text/javascript">
$(function(){
    $('#show_shipping').on('hover',function(){
        var_send = '<?php echo date("Y-m-d H:i:s",$output['order_info']['extend_order_common']['shipping_time']); ?>&nbsp;&nbsp;<?php echo $lang['member_show_seller_has_send'];?><br/>';
    	$.getJSON('index.php?act=member_order&op&op=get_express&e_code=<?php echo $output['e_code']?>&shipping_code=<?php echo $output['order_info']['shipping_code']?>&t=<?php echo random(7);?>',function(data){
    		if(data){
    			data = var_send+data.join('<br/>');
    			$('#shipping_ul').html('<li>'+data+'</li>');
    			$('#show_shipping').unbind('hover');
    		}else{
    			$('#shipping_ul').html(var_send);
    			$('#show_shipping').unbind('hover');
    		}
    	});
    });
});
</script>


    <!-- 退款记录 -->
    <?php if(is_array($output['refund_list']) and !empty($output['refund_list'])) { ?>
    <h3><?php echo $lang['member_order_refund'];?></h3>
    <ul class="log-list">
      <?php foreach($output['refund_list'] as $val) { ?>
      <li> 发生时间<?php echo $lang['nc_colon'];?><?php echo date("Y-m-d H:i:s",$val['admin_time']); ?>&emsp;&emsp;退款单号<?php echo $lang['nc_colon'];?><?php echo $val['refund_sn'];?>&emsp;&emsp;退款金额<?php echo $lang['nc_colon'];?><?php echo $lang['currency'];?><?php echo $val['refund_amount']; ?>&emsp;备注<?php echo $lang['nc_colon'];?><?php echo $val['goods_name'];?></li>
      <?php } ?>
    </ul>
    <?php } ?>

    <!-- 退货记录 -->
    <?php if(is_array($output['return_list']) and !empty($output['return_list'])) { ?>
    <h3><?php echo $lang['member_order_return'];?></h3>
    <ul class="log-list">
      <?php foreach($output['return_list'] as $val) { ?>
      <li> 发生时间<?php echo $lang['nc_colon'];?><?php echo date("Y-m-d H:i:s",$val['admin_time']); ?>&emsp;&emsp;退款单号<?php echo $lang['nc_colon'];?><?php echo $val['refund_sn'];?>&emsp;&emsp;退款金额<?php echo $lang['nc_colon'];?><?php echo $lang['currency'];?><?php echo $val['refund_amount']; ?>&emsp;备注<?php echo $lang['nc_colon'];?><?php echo $val['goods_name'];?></li>
      <?php } ?>
    </ul>
    <?php } ?>

  </div>
  <div class="clear"></div>
</div>